<?php 
 // 更改本地语言
	// 必须在 load_theme_textdomain() 的前面调用
	add_filter( 'locale', 'my_theme_localized' );
	function my_theme_localized($locale) {
		if (isset($_GET['l'])) {
			return $_GET['l'];
		}
		return $locale;
	}
// 设置主题语言路径
	// 语言包应该访问 my_theme/languages/ 目录
	// Wordpress 自身语言包放在 wp-content/languages/ 目录
	load_theme_textdomain( 'my_theme', TEMPLATEPATH . '/languages' );
if(get_option('upload_path')=='wp-content/uploads' || get_option('upload_path')==null) {
	update_option('upload_path',WP_CONTENT_DIR.'/uploads');
}
?> 
